package org.example.controller.portal;

import org.example.pojo.Comment;
import org.example.response.ResponseResult;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/portal/comment")
public class CommentPortalApi {

    //添加评论
    @PostMapping
    public ResponseResult postComment(@RequestBody Comment comment) {
        return null;
    }

    //删除评论
    @DeleteMapping("/{commentId}")
    public ResponseResult deleteComment(@PathVariable String commentId) {
        return null;
    }

    //获取评论列表
    @GetMapping("/list/{articleId}")
    public ResponseResult listComments(@PathVariable String articleId) {
        return null;
    }
}
